import request from "@/utils/request";

// 列表
export function businessListApi(data) {
  return request({
    url: "/project/businessType/getBusinessTypes",
    method: "get",
    params: data,
  });
}


// 添加
export function businessAddApi(data){
    return request({
        url:'/project/businessType/save',
        method:'post',
        data,
    })
}

// 编辑
export function businessDetailsApi(data){
    return request({
        url:"/project/businessType/getById",
        method:"post",
        data
    })
}

// 编辑更新
export function businessUpdateApi(data){
    return request({
    url:'/project/businessType/update',
    method:'put',
    data
    })
}

// 删除
export function businessDeleteApi(data){
    return request({
        url:'/project/businessType/delete/' + data,
        method:'delete',
    })
}


